const _ = require('lodash');

// const compose = (...args)=>(val)=>args.reverse().reduce((Cumulative,fn)=>fn(Cumulative),val)
// const fn = _.flowRight(_.toUpper,_.first,_.reverse)
// const fn = _.flowRight(_.flowRight(_.toUpper,_.first),_.reverse)
const fn = _.flowRight(_.toUpper,_.flowRight(_.first,_.reverse))
console.log(fn(['one','two','three']))

